def dot_product(a,b):
    sum = 0
    if len(a)!=len(b):
        sum=False
    else:
        for i in range(len(a)):
            sum+=a[i]*b[i]
    return sum 